<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="Header.jsp"/>
<title>New Leave Type page</title>
</head>
<body>
<jsp:include page="AdminNav.jsp"/>
<h2>Leave Type page</h2>

<div class="col-md-10">
<form:form method="POST" commandName="LeaveType" action="${pageContext.request.contextPath}/LeaveType/edit/${LeaveType.leaveTypeId}" >
<table>
<tbody>
<tr>
<td>Leave Type Name:</td>
<td><form:input path="name" readonly="true" cssClass="form-control"/></td>
<td><form:errors path="name" cssStyle="color: red;"/></td>
</tr>
<tr>
<td>Allowed Days:</td>
<td><form:input path="allowedDays" cssClass="form-control"/></td>
<td><form:errors path="allowedDays" cssStyle="color: red;"/></td>
</tr>

<tr>

<td></td>
<td><input type="submit" value="Update" class="btn btn-primary" /></td>
<td></td>
</tr>
</tbody>
</table>
</form:form>
</div>

<jsp:include page="footer.jsp"/>
</body>
</html>